package com.greatchn.htykj.controller;

import com.greatchn.htykj.entity.UserInfo;
import com.greatchn.htykj.service.DemoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

/**
 * <strong>Title : DemoController </strong>. <br>
 * <strong>Description : TODO </strong> <br>
 * <strong>Create on : 2018/12/19 17:23 </strong>. <br>
 *
 * @author songbb<br>
 * @version <strong>浩天云会计1.0</strong> <br>
 * <br>
 * <strong>修改历史: </strong> <br>
 * 修改人 修改日期 修改描述<br>
 * -------------------------------------------<br>
 * <br>
 * <br>
 */
@Controller
@RequestMapping("/demo")
public class DemoController {

    @Autowired
    private DemoService demoService;


    @RequestMapping(value = "/getUserInfo",method = RequestMethod.GET)
    @ResponseBody
    public List<UserInfo> getUserInfo(){
     return  demoService.getUserInfoList();
    }
}
